package com.maserb.monitor.repository;

import com.maserb.monitor.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaSpecificationExecutor<UserEntity>
        , PagingAndSortingRepository<UserEntity, String> {

    UserEntity findByUserName(String userName);

    List<UserEntity> findByOrgId(String orgId);

    UserEntity findFirstByRealName(String realName);
}